home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Science
/
RLaB
/
help
/
srand
< prev
next >
Wrap
Text File
|
1994-04-25
|
430b
|
20 lines
srand:
Syntax: srand ( )
srand ( a )
srand ( "clock" )
Description:
Srand sets the seed for the random number generator.
`srand()' sets the seed to the original value (the last value
given to srand(), or the default value, 1).
`srand( "clock" )' sets the seed based upon the machines clock
value. This provides users a way of picking a unique seed each
time.
Srand uses the RANLIB subroutine SETALL.
See Also: rand